import 'package:boss/common/common.dart';
import 'package:boss/textStyle/text_style.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class PlusCommodityByFormFieldSkuHeader extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DefaultTextStyle(
      style: TextStyleConstant().normal_1_24,
      textAlign: TextAlign.center,
      child: Container(
        height: 90.w,
        alignment: Alignment.center,
        child: Row(
          children: <Widget>[
            Expanded(
              child: Text(
                '规格名称',
              ),
            ),
            if (Constant.isTakeout)
            Expanded(
              child: Text(
                '规格售价',
              ),
            ),
            Expanded(
              child: Text(Constant.isTakeout ? '规格原价' : '规格价'),
            ),
            Constant.isTakeout
                ? SizedBox()
                : Expanded(
                    child: Text(
                      '会员价',
                    ),
                  ),
          ],
        ),
      ),
    );
  }
}
